import React from 'react';
import { FixedSizeList } from 'react-window';
import ListItem from '@material-ui/core/ListItem';
import '../../style/itemAddress.less'
class ItemAddress extends React.Component{

    constructor(props){
        super(props)
        console.log(props.value);
        this.state={
            value:props.value,
        }
    }

    render() {
        return (
            <div className="ItemAddress">
                <div className="left">
                    <img alt="img" src={this.state.value.img}/>
                </div>
                <div className="right">
                    {this.props.value.name}
                </div>
            </div>
        )
    }
}
export default ItemAddress
